package com.juzi.wopu.query;

import org.apache.commons.lang3.StringUtils;

public class RoleQuery extends BaseQuery{
	
	private String sName;

	public RoleQuery() {
		super("Role");
	}
	
	@Override
	protected void addWhere() {
		if (StringUtils.isNotBlank(sName)) {
			AddWhere("o.sName like ?", "%" + sName + "%");
		}
	}

	public String getsName() {
		return sName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}

	public String getSName() {
		return sName;
	}

	public void setSName(String sName) {
		this.sName = sName;
	}
}
